package cn.hzu580.dao;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.hibernate.Criteria;


public interface BaseDAO{

	public void insert(Object pEntity);
	
	public void delete(Object pEntity);
	
	public void update(Object pEntity);
	
	public Object get(Class<?> clazz, Serializable pSerializable);
	
	public List<?> exeQuery(String prepareHQL,  Map<String, Object> parameters);
	
	public List<?> exeQuery(String prepareHQL,  Map<String, Object> parameters, int firstResult, int maxResult);
	
	public int exeUpdate(String prepareHQL,  Map<String, Object> parameters);
	
	public Criteria createQBC(Class<?> clazz);
	
}
